import { Global, Module } from '@nestjs/common';
import { YhLoggerService } from './yhlogger.service';
import { CrudService } from './crud.service';
import { SharedController } from './shared.controller';
import { SharedService } from './shared.service';
import { join } from 'node:path';


@Global()
@Module({
    controllers: [ SharedController ],
    providers: [ YhLoggerService, CrudService, SharedService, {
        provide: 'downloadPath',
        useValue: join(__dirname, '../../download')
    } ],
    exports: [ YhLoggerService, CrudService, SharedService, {
        provide: 'downloadPath',
        useValue: join(__dirname, '../../download')
    } ]
})
export class SharedModule {}
